package com.fdd.spring.component;


import com.fdd.spring.annotation.AutoWired;
import com.fdd.spring.annotation.Component;
import com.fdd.spring.annotation.Scope;

@Component(value = "userService")
@Scope(value = "prototype")
public class UserService {
    @AutoWired(required = true)
    private UserDao userDao;

    @AutoWired(required = false)
    private Tiger tiger;

    public void m1(){
        userDao.hi();
    }

}
